namespace Blog.Presentation.UIHelpers
{
    public static class UrlEncoder
    {
        public static string ToFriendlyUrl(string urlToTidy)
        {
            var url = urlToTidy.Trim();
            url = url.Replace("  ", " ").Replace(" - ", " ").Replace(" ", "-").Replace(",", "").Replace("...", "");
            return url;
        }
    }

    
}